<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
%>
<html>
<head>
    <title>个人中心-日志</title>
</head>
<body>
<table class="table">
    <thead>
    <tr>
        <th width="50">序号</th>
        <th width="150">索引图片</th>
        <th width="350">标题</th>
        <th width="150">发布时间</th>
        <th width="100">操作</th>
    </tr>
    </thead>


    <c:forEach items="${requestScope.pageInfo.list}" var="journal" varStatus="stat">
    <tr>
        <td  rowspan="2">
            <span class="pending">${stat.count}</span>
        </td>
        <td>
            <c:if test="${not empty journal.pics}">
            <img width="100%"  src="<%=path %>/web/userinfo/img/journalImages/${journal.pics}">
            </c:if>
        </td>
        <td class="manage-jobs-title"><a
                href="<%=path %>/web/blogger/blogs?id=${journal.id}"
                target="_blank">${journal.title}</a>
        </td>

        <td class="table-date">
            <fmt:formatDate value="${journal.inputTime}" pattern="yyyy-MM-dd"/>
        </td>
        <td>
            <a target="_parent" href="<%=path %>/web/userinfo/updateByJournalId?journalId=${journal.id}"><img src="<%=path %>/web/userinfo/img/member_center/update.jpg" width="20px" height="20px"/></a>
            <a href="javascript:void()" class="delete" data-id="${journal.id}"><img src="<%=path %>/web/userinfo/img/member_center/delete.jpg" width="20px" height="20px"/></a>
        </td>
    </tr>
    <tr class="wm-course-count">

        <td colspan="6">
            <div>
                <span>浏览：${journal.browseCount}</span> <span>评论：${journal.commentCount}</span> <span>点赞：${journal.likeCount}</span>
            </div>
        </td>
    </tr>
    </c:forEach>
    </tbody>
</table>
<!-- 分页 -->



<!-- 分页begin -->
<div class="pagination-box-row" style="bottom:0px;position:absolute;width:830px">

    <p>
        <div class="meneame">
<%--            <c:if test="${requestScope.pageInfo.pageNum eq 1}" var="result">--%>
<%--                <span class="disabled"> < </span>--%>
<%--            </c:if>--%>
<%--            <c:if test="${not result}">--%>
<%--                <a href="" data-id="${requestScope.pageInfo.pageNum}> < </a>--%>
<%--            </c:if>--%>

            <c:forEach begin="1" end="${requestScope.pageInfo.pages}" var="i">
                <c:if test="${requestScope.pageInfo.pageNum eq i}" var="isCur">
                    <a class="current" data-id="${i}">${i}</a>
                </c:if>
                <c:if test="${not isCur}">
                    <a href="#" data-id="${i}">${i}</a>
                </c:if>
            </c:forEach>
<%--             <a href="#?page=2"> > </a>--%>
        </div>
    </p>

</div>
<!-- 分页end pagination -->
</body>
</html>
